package com.taotao.usermanage.controller;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.usermanage.bean.EasyUIResult;
import com.taotao.usermanage.services.UserService;
import com.taotao.usermanage.util.PageRequest;

@RequestMapping("user")
@Controller
public class UserController {
    
    @Autowired
    private UserService userService;
    
    @RequestMapping(value = "list")
    @ResponseBody
    public EasyUIResult queryUserList(PageRequest pageRequest){
        return userService.queryUserList(pageRequest);
    }
}
